package com.ittable.datasource.route.dao.single;

import com.ittable.datasource.route.dao.MybatisBaseDao;
import com.ittable.datasource.route.model.Plugin;

/**
 * @author srh
 * @date 2020/12/20
 **/
public class PluginDAO extends MybatisBaseDao {

    public int save(Plugin plugin) {
        return this.executeInsert("plugin.insert", plugin);
    }

    public Plugin queryByPrimaryKey(Long id) {
        return (Plugin) this.executeQueryForObject("plugin.queryById", id);
    }

}
